﻿<%@ Control Language="C#" AutoEventWireup="true" Inherits="HL.Lib.MVC.ViewControl" %>
<% 
    var listItem = ViewBag.Data as List<SysPageEntity>;
    string clas = string.Empty;
    string show = string.Empty;
%>
<div class="menu">
<%for (int i = 0; listItem != null && i < listItem.Count; i++)
  {
      clas = string.Empty;
      show = MyClass.GetCusTomPage("Show", listItem[i].Custom);
      if (show != "false")
      {
          clas = MyClass.GetCusTomPage("Class", listItem[i].Custom);
       %>
    <a class="<%=clas %>" href="<%=ViewPage.GetPageURL(listItem[i]) %>" title="<%=listItem[i].Name %>"></a>
    <%}
  } %>
</div>
